package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.Salary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author marktotop
 * @since 2021-05-23
 */
@Repository
public interface SalaryMapper extends BaseMapper<Salary> {
    /**
     * 分页显示所有工资账套信息
     * @return
     */
     IPage<Salary> findAllByPage(Page<Salary> page,@Param("salary") Salary salary);

    /**
     * 添加
     * @param salary
     * @return
     */
    int addSalary(Salary salary);
}
